<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>出资方列表 - 小额贷款</title>
<%@ include file="/common/include/title.jsp"%>
<script language="javascript" type="text/javascript" src="${rootpath }/common/resource/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
	<%@ include file="/common/include/header.jsp"%>
	<div class="container-fluid">
		<div class="row">
			<div class="col-sm-10 col-sm-offset-1 main">
				<h2 class="sub-header">出资方列表</h2>
				<form action="${rootpath }/head/investor/investorList.htm" method="post" class="form-inline">
					<div class="form-group">
						<label for="keyword">关键字:</label>
						 <input type="text"	name="keyword" value="${requestScope.keyword }" class="form-control"> 
						 <label for="keyword">类型:</label>
						 <select name="coopType" class="form-control">
						 		<option >请选择</option>
						 		<option value="0" ${requestScope.coopType=='0'?'selected':'' }>直通</option>
						 		<option value="1" ${requestScope.coopType=='1'?'selected':'' }>非直通</option>
						 </select>
						 <labelfor="email">发布时间:</label> 
							<input type="text" name="st" value="${requestScope.st }" readonly="true" class="form-control"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" /> --> 
							<input type="text" name="ed" value="${requestScope.ed }" readonly="true" class="form-control"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" /> 
							<input type="submit" class="btn btn-primary" value="搜索">
					</div>
				</form>
				<div class="table-responsive">
					<table class="table table-striped">
						<thead>
							<tr>
								<th>序号</th>
								<th >名称</th>
								<th >联系人</th>
								<th >联系电话</th>
								<th>贷款利率</th>
								<th>逾期利率</th>
								<th>类型</th>
								<th>发布时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${requestScope.investorList }" var="investor" varStatus="stat">
							<tr>
								<td>${stat.count }</td>
								<td><a href="" target="_blank">${investor.name }</a></td>
								<td>${investor.contactName }</td>
								<td>${investor.contactPhone }</td>
								<td><fmt:formatNumber value="${investor.loanRate }" pattern="#.##%"/></td>
								<td><fmt:formatNumber value="${investor.overdueRate }" pattern="#.##%"/></td>
								<td>${investor.coopTypeStr }</td>
								<td>
								<fmt:formatDate value="${investor.pubTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
								</td>
								<td><a href="${rootpath }/head/investor/investorInfo.htm?iid=${investor.id}">查看</a></td>
							</tr>
							</c:forEach>
						</tbody>
					</table>

					<form id="pageForm"
						action="${rootpath }/head/investor/investorList.htm" method="post">

						<!-- 设置一些参数 -->
						<input type="hidden" name="keyword" value="${requestScope.keyword }"> 
						<input type="hidden" name="coopType" value="${requestScope.coopType }"> 
						<input type="hidden" name="st" value="${requestScope.st }"> 
						<input type="hidden" name="ed" value="${requestScope.ed }">
						<nav>
							<ul class="pager">
								<li><a href="#"
									onclick="return pageFormSubmit('pageForm','currentPage','1','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>首页</span></a></li>
								<li><a href="#"
									onclick="return pageFormSubmit('pageForm','currentPage',''${requestScope.pageInfoUtil.prePage }'','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>上一页</span></a></li>
								<li><a href="#"
									onclick="return pageFormSubmit('pageForm','currentPage','${requestScope.pageInfoUtil.nextPage }','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>下一页</span></a></li>
								<li><a href="#"
									onclick="return pageFormSubmit('pageForm','currentPage','${requestScope.pageInfoUtil.totalPage }','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>尾页</span></a></li>
								<li>共${requestScope.pageInfoUtil.totalPage }页,共${requestScope.pageInfoUtil.totalRecord }条</li>
								<li>第<input type="text" id="currentPage" name="currentPage" value="${requestScope.pageInfoUtil.currentPage }" size="5" maxlength="5" />页
								</li>
								<li>每页<input type="text" id="pageSize" name="pageSize" value="${requestScope.pageInfoUtil.pageSize }" size="5" maxlength="5" />条</li>
								<li><input type="submit" value="GO" class="btn btn-primary" /></li>
							</ul>
						</nav>
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- 提示信息 -->
	<div class="container">
		<div class="col-sm-8 col-sm-offset-1"></div>
	</div>

	<%@ include file="/common/include/footer.jsp"%>
</body>
</html>